<template>
	<view class="empty-content">
		<image class="empty-content-image" :src="src" mode="aspectFit"></image>
		<text style="font-size: 30upx; color: #999;">{{desc}}</text>
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: '../../static/images-icon/暂无数据(2).png'
			},
			desc: {
				type: String,
				default: '暂无数据'
			}
		},

		data() {
			return {
				typeSrc: {
					empty: ''
				},
			}
		},
onLoad() {
	console.log(src)
},
		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		position: relative;

		&-image {	
			position: relative;
			width: 80%;
			margin-bottom: 20upx;
		}
	}
</style>
